import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 引入@vitejs/plugin-legacy
import replace from '@rollup/plugin-replace'
// 在plugins中添加

// https://vitejs.dev/config/
export default defineConfig({
  base: './',
  plugins: [
    vue(),
    replace({
      preventAssignment: true,
      values: {
        __TIMESTAMP__: new Date().getTime()
      }
    })
  ],
  server: {
    host: '0.0.0.0'
  }
})
